#!/usr/bin/env python3   
# -*- coding: utf-8 -*-
#time:2018/10/9 14:31
#version:1.0
#_author_:jtst
# 错误拦截， 提示404
from application import  app
from common.libs.Helper import ops_render
from common.libs.LogService import LogService

@app.errorhandler( 404 )
def error_404( e ):
    LogService.addErrorLog( str( e ) )
    return ops_render( 'error/error.html',{ 'status':404,'msg':'很抱歉！您访问的页面不存在' } )